Skip to content

fix: remove opacity for disabled in components#10003

Merged
deleonio merged 14 commits intodevelopfrom
fix/9765-remove-opacity-in-components
Apr 24, 2026
Merged

fix: remove opacity for disabled in components#10003
deleonio merged 14 commits intodevelopfrom
fix/9765-remove-opacity-in-components

Conversation

@BF150
Copy link
Copy Markdown
Contributor

@BF150 BF150 commented Apr 13, 2026

No description provided.

@BF150 BF150 self-assigned this Apr 13, 2026
@BF150 BF150 added the v4 label Apr 13, 2026
@BF150 BF150 linked an issue Apr 13, 2026 that may be closed by this pull request
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 13, 2026

🚀 MCP preview deployed to Vercel: https://kolibri-8g8tcmjt9-public-ui-kolibri-mcp.vercel.app

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the handling of disabled states across multiple themes by moving opacity definitions from shared mixins into theme-specific stylesheets. The review identified critical issues with SCSS selector nesting in the form-field mixins for the bwst and default themes, where the current syntax incorrectly expects nested base classes. Furthermore, the removal of styles in the kern theme resulted in the loss of the cursor: not-allowed property, which is necessary for maintaining proper accessibility and user experience.

I am having trouble creating individual review comments. Click here to see my feedback.

packages/themes/bwst/src/mixins/form-field.scss (39-44)

high

The selector &--disabled & expands to .kol-form-field--disabled .kol-form-field, which implies that a .kol-form-field element is nested inside another element with the --disabled modifier. Based on the shared mixin's logic, the modifier is typically applied to the same element. This selector will likely fail to match the intended labels and hints. It is recommended to target the children directly from the modifier.

		&--disabled {
			&__label,
			&__hint {
				opacity: 0.5;
			}
		}

packages/themes/default/src/mixins/form-field.scss (44-49)

high

The selector &--disabled & expands to .kol-form-field--disabled .kol-form-field, which appears to be incorrect as it expects nesting of the base class. It should target the sub-elements directly under the disabled state modifier to ensure the opacity is applied correctly.

		&--disabled {
			&__label,
			&__hint {
				opacity: 0.5;
			}
		}

packages/themes/kern/src/mixins/_form-field.mixin.scss (13-17)

medium

The removal of this block eliminates the cursor: not-allowed style for disabled and read-only labels in the Kern theme. While removing the opacity: 1 override is consistent with the PR's goal of moving opacity to themes, the cursor style should be maintained to ensure proper UX and accessibility, indicating that the field is non-interactive.

		&--read-only &__label,
		&--disabled &__label {
			cursor: not-allowed;
		}

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 13, 2026

@BF150 BF150 marked this pull request as ready for review April 14, 2026 07:33
@deleonio deleonio merged commit dff5a4c into develop Apr 24, 2026
12 checks passed
@deleonio deleonio deleted the fix/9765-remove-opacity-in-components branch April 24, 2026 06:59
@publicuibot publicuibot Bot locked and limited conversation to collaborators Apr 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Disabled components: opacity entfernen

2 participants